<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3.7 函数</title>
    <script>
        function sayHello(arg1, arg2) {
            console.log(`参数个数：${arguments.length}`);
            console.log(arg1);
            console.log(arg2);
            arguments[0] = 9999;
            console.log(arg1);
        }

        function sayHello2(arg1, arg2, arg3) {
            'use strict';
            console.log(`参数个数：${arguments.length}`);
            console.log(arg1);
            console.log(arg2);
            arguments[0] = 9999;
            console.log(arg1);
            console.log(arg3);
        }

        sayHello(1001, '雨夜');
        console.log('=======================');
        sayHello2(1001, '雨夜');
    </script>
</head>
<body>

</body>
</html>